package com.api.shopapi.service;

import com.alibaba.fastjson.JSONArray;
import com.api.shopapi.entity.EElderlyRelatives;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface EElderlyRelativesService {

    int insert(EElderlyRelatives elderlyRelatives);

    int update(EElderlyRelatives elderlyRelatives);

    int delete(String elderlyRelativesCode);

    EElderlyRelatives getByElderlyRelativesCode(String elderlyRelativesCode);

    PageInfo<EElderlyRelatives> getPageList(int pageIndex,int pageSize,String elderlyCode);

    void deleteAll(JSONArray elderlyRelativesCodeList);
}
